Fix gdb-mi.el bug#9853, bug#9858, and bug#9878.
authorKen Brown <kbrown@cornell.edu>
Wed, 30 Nov 2011 03:18:33 +0000 (22:18 -0500)
committerKen Brown <kbrown@cornell.edu>
Wed, 30 Nov 2011 03:18:33 +0000 (22:18 -0500)
commit75f00b2ac62b1f7a172a69d47489166d79c341a7
treed281b4147d10027a4e19874468f456af7964985d
parent05661371994a16ff0db6322673ed5a634b96a4af
Fix gdb-mi.el bug#9853, bug#9858, and bug#9878.

* lisp/progmodes/gdb-mi.el (gdb-version): Remove defvar.
(gdb-supports-non-stop): New defvar, replacing `gdb-version'.
(gdb-gud-context-command, gdb-non-stop-handler)
(gdb-current-context-command, gdb-stopped): Use it.
(gdb-init-1): Enable pretty printing here.
(gdb-non-stop-handler): Don't enable pretty-printing here.  Check
to see if the target supports non-stop mode; if not, turn off
non-stop mode.  Use the following.
(gdb-check-target-async): New defun.
(gud-watch, gdb-stopped): Fix whitespace.
(gdb-get-source-file): Don't try to display the source file if
`gdb-main-file' is nil.
lisp/ChangeLog
lisp/progmodes/gdb-mi.el